package net.microfigure.service;

import net.microfigure.commons.result.PageInfo;
import net.microfigure.model.PartInst;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 * 参合登记实例表 服务类
 * </p>
 *
 * @author 林景锋
 * @since 2018-06-22
 */

public interface IPartInstService extends IService<PartInst> {
	boolean insertOK(String partNo, String familyNo, String name, String gender, Integer age, String contact, String address);

	
	List<PartInst> selectListByFamilyInfoNo(Integer familyInfoNo);
	
	
	
	/**
	 * 生成证件号
	 * 
	 * @param preFix
	 * @return
	 */
	String getPartInstNo(String familyNo);

	/**
	 * 取消参合
	 * @param id
	 */
	public void cancelPart(String partNo);
	
	
	/**
	 * 参合登记
	 * @param partInst
	 */
	public void addPartInst(PartInst partInst);
	
	void selectDataGrid(PageInfo pageInfo);


	void selectDataGrid(PageInfo pageInfo, String familyNo);
}
